import instance from '../utils/request'

const getChannels = () => {
  return instance({
    url: '/v1_0/user/channels',
    method: 'get'
  })
}
// eslint的默认规则中不允许使用_命名
/* eslint-disable */
const getArticle = ({ channel_id, timestamp }) => {
  return instance({
    url: '/v1_1/articles',
    method: 'get',
    params: {
      channel_id,
      with_top: 1,
      timestamp
    }
  })
}
export { getChannels, getArticle }
